package cuid.sc20.laboratory.test;

import java.io.IOException;
import java.io.InputStream;

public class Hello {
    public static void main(String[] args) {
        System.out.println("Hello");
        Runtime runtime = Runtime.getRuntime();
        try {
            Process exec = runtime.exec("ls -al");
            InputStream is = exec.getInputStream();
            byte[] buffer = new byte[1024];
            int length = is.read(buffer);
            String content = new String(buffer, 0, length);
            System.out.println(content);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
